
import Layout from '@/layout'

export default {
  // 一级路由的地址
  path: '/subjects',
  // 是用布局作为组件
  component: Layout,
  // 【名称，非常的重要，有可能是作为权限的筛选标识】
  name: 'subjects',
  meta: { title: '学科管理', icon: 'table' },
  children: [
    {
      path: 'list',
      component: () => import('@/views/subjects/list'),
      name: 'subjects-list',
      meta: {
        title: '学科',
        icon: 'table'
      }
    },
    {
      path: 'directorys',
      component: () => import('@/views/subjects/directorys'),
      name: 'subjects-directorys',
      meta: {
        title: '目录',
        icon: 'table'
      }
    },
    {
      path: 'tags',
      component: () => import('@/views/subjects/tags'),
      name: 'subjects-tags',
      meta: {
        title: '标签',
        icon: 'table'
      }
    }
  ]
}
